/****************************************************************************
** Meta object code from reading C++ file 'Network.h'
**
** Created by: The Qt Meta Object Compiler version 67 (Qt 5.15.2)
**
** WARNING! All changes made in this file will be lost!
*****************************************************************************/

#include <memory>
#include "../src/IO/DataSources/Network.h"
#include <QtCore/qbytearray.h>
#include <QtCore/qmetatype.h>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'Network.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 67
#error "This file was generated using the moc from 5.15.2. It"
#error "cannot be used with the include files from this version of Qt."
#error "(The moc has changed too much.)"
#endif

QT_BEGIN_MOC_NAMESPACE
QT_WARNING_PUSH
QT_WARNING_DISABLE_DEPRECATED
struct qt_meta_stringdata_IO__DataSources__Network_t {
    QByteArrayData data[31];
    char stringdata0[399];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
    Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
    qptrdiff(offsetof(qt_meta_stringdata_IO__DataSources__Network_t, stringdata0) + ofs \
        - idx * sizeof(QByteArrayData)) \
    )
static const qt_meta_stringdata_IO__DataSources__Network_t qt_meta_stringdata_IO__DataSources__Network = {
    {
QT_MOC_LITERAL(0, 0, 24), // "IO::DataSources::Network"
QT_MOC_LITERAL(1, 25, 11), // "hostChanged"
QT_MOC_LITERAL(2, 37, 0), // ""
QT_MOC_LITERAL(3, 38, 11), // "portChanged"
QT_MOC_LITERAL(4, 50, 17), // "socketTypeChanged"
QT_MOC_LITERAL(5, 68, 19), // "lookupActiveChanged"
QT_MOC_LITERAL(6, 88, 12), // "setTcpSocket"
QT_MOC_LITERAL(7, 101, 12), // "setUdpSocket"
QT_MOC_LITERAL(8, 114, 16), // "disconnectDevice"
QT_MOC_LITERAL(9, 131, 7), // "setPort"
QT_MOC_LITERAL(10, 139, 4), // "port"
QT_MOC_LITERAL(11, 144, 7), // "setHost"
QT_MOC_LITERAL(12, 152, 4), // "host"
QT_MOC_LITERAL(13, 157, 6), // "lookup"
QT_MOC_LITERAL(14, 164, 18), // "setSocketTypeIndex"
QT_MOC_LITERAL(15, 183, 5), // "index"
QT_MOC_LITERAL(16, 189, 13), // "setSocketType"
QT_MOC_LITERAL(17, 203, 27), // "QAbstractSocket::SocketType"
QT_MOC_LITERAL(18, 231, 4), // "type"
QT_MOC_LITERAL(19, 236, 14), // "lookupFinished"
QT_MOC_LITERAL(20, 251, 9), // "QHostInfo"
QT_MOC_LITERAL(21, 261, 4), // "info"
QT_MOC_LITERAL(22, 266, 15), // "onErrorOccurred"
QT_MOC_LITERAL(23, 282, 28), // "QAbstractSocket::SocketError"
QT_MOC_LITERAL(24, 311, 11), // "socketError"
QT_MOC_LITERAL(25, 323, 10), // "socketType"
QT_MOC_LITERAL(26, 334, 15), // "socketTypeIndex"
QT_MOC_LITERAL(27, 350, 11), // "socketTypes"
QT_MOC_LITERAL(28, 362, 11), // "defaultHost"
QT_MOC_LITERAL(29, 374, 11), // "defaultPort"
QT_MOC_LITERAL(30, 386, 12) // "lookupActive"

    },
    "IO::DataSources::Network\0hostChanged\0"
    "\0portChanged\0socketTypeChanged\0"
    "lookupActiveChanged\0setTcpSocket\0"
    "setUdpSocket\0disconnectDevice\0setPort\0"
    "port\0setHost\0host\0lookup\0setSocketTypeIndex\0"
    "index\0setSocketType\0QAbstractSocket::SocketType\0"
    "type\0lookupFinished\0QHostInfo\0info\0"
    "onErrorOccurred\0QAbstractSocket::SocketError\0"
    "socketError\0socketType\0socketTypeIndex\0"
    "socketTypes\0defaultHost\0defaultPort\0"
    "lookupActive"
};
#undef QT_MOC_LITERAL

static const uint qt_meta_data_IO__DataSources__Network[] = {

 // content:
       8,       // revision
       0,       // classname
       0,    0, // classinfo
      14,   14, // methods
       8,  112, // properties
       0,    0, // enums/sets
       0,    0, // constructors
       0,       // flags
       4,       // signalCount

 // signals: name, argc, parameters, tag, flags
       1,    0,   84,    2, 0x06 /* Public */,
       3,    0,   85,    2, 0x06 /* Public */,
       4,    0,   86,    2, 0x06 /* Public */,
       5,    0,   87,    2, 0x06 /* Public */,

 // slots: name, argc, parameters, tag, flags
       6,    0,   88,    2, 0x0a /* Public */,
       7,    0,   89,    2, 0x0a /* Public */,
       8,    0,   90,    2, 0x0a /* Public */,
       9,    1,   91,    2, 0x0a /* Public */,
      11,    1,   94,    2, 0x0a /* Public */,
      13,    1,   97,    2, 0x0a /* Public */,
      14,    1,  100,    2, 0x0a /* Public */,
      16,    1,  103,    2, 0x0a /* Public */,
      19,    1,  106,    2, 0x08 /* Private */,
      22,    1,  109,    2, 0x08 /* Private */,

 // signals: parameters
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,

 // slots: parameters
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void, QMetaType::UShort,   10,
    QMetaType::Void, QMetaType::QString,   12,
    QMetaType::Void, QMetaType::QString,   12,
    QMetaType::Void, QMetaType::Int,   15,
    QMetaType::Void, 0x80000000 | 17,   18,
    QMetaType::Void, 0x80000000 | 20,   21,
    QMetaType::Void, 0x80000000 | 23,   24,

 // properties: name, type, flags
      12, QMetaType::QString, 0x00495103,
      10, QMetaType::UShort, 0x00495103,
      25, 0x80000000 | 17, 0x0049510b,
      26, QMetaType::Int, 0x00495103,
      27, QMetaType::QStringList, 0x00095401,
      28, QMetaType::QString, 0x00095401,
      29, QMetaType::UShort, 0x00095401,
      30, QMetaType::Bool, 0x00495001,

 // properties: notify_signal_id
       0,
       1,
       2,
       2,
       0,
       0,
       0,
       3,

       0        // eod
};

void IO::DataSources::Network::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    if (_c == QMetaObject::InvokeMetaMethod) {
        auto *_t = static_cast<Network *>(_o);
        Q_UNUSED(_t)
        switch (_id) {
        case 0: _t->hostChanged(); break;
        case 1: _t->portChanged(); break;
        case 2: _t->socketTypeChanged(); break;
        case 3: _t->lookupActiveChanged(); break;
        case 4: _t->setTcpSocket(); break;
        case 5: _t->setUdpSocket(); break;
        case 6: _t->disconnectDevice(); break;
        case 7: _t->setPort((*reinterpret_cast< const quint16(*)>(_a[1]))); break;
        case 8: _t->setHost((*reinterpret_cast< const QString(*)>(_a[1]))); break;
        case 9: _t->lookup((*reinterpret_cast< const QString(*)>(_a[1]))); break;
        case 10: _t->setSocketTypeIndex((*reinterpret_cast< const int(*)>(_a[1]))); break;
        case 11: _t->setSocketType((*reinterpret_cast< const QAbstractSocket::SocketType(*)>(_a[1]))); break;
        case 12: _t->lookupFinished((*reinterpret_cast< const QHostInfo(*)>(_a[1]))); break;
        case 13: _t->onErrorOccurred((*reinterpret_cast< const QAbstractSocket::SocketError(*)>(_a[1]))); break;
        default: ;
        }
    } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        switch (_id) {
        default: *reinterpret_cast<int*>(_a[0]) = -1; break;
        case 12:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<int*>(_a[0]) = -1; break;
            case 0:
                *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< QHostInfo >(); break;
            }
            break;
        case 13:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<int*>(_a[0]) = -1; break;
            case 0:
                *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< QAbstractSocket::SocketError >(); break;
            }
            break;
        }
    } else if (_c == QMetaObject::IndexOfMethod) {
        int *result = reinterpret_cast<int *>(_a[0]);
        {
            using _t = void (Network::*)();
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&Network::hostChanged)) {
                *result = 0;
                return;
            }
        }
        {
            using _t = void (Network::*)();
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&Network::portChanged)) {
                *result = 1;
                return;
            }
        }
        {
            using _t = void (Network::*)();
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&Network::socketTypeChanged)) {
                *result = 2;
                return;
            }
        }
        {
            using _t = void (Network::*)();
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&Network::lookupActiveChanged)) {
                *result = 3;
                return;
            }
        }
    }
#ifndef QT_NO_PROPERTIES
    else if (_c == QMetaObject::ReadProperty) {
        auto *_t = static_cast<Network *>(_o);
        Q_UNUSED(_t)
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast< QString*>(_v) = _t->host(); break;
        case 1: *reinterpret_cast< quint16*>(_v) = _t->port(); break;
        case 2: *reinterpret_cast< QAbstractSocket::SocketType*>(_v) = _t->socketType(); break;
        case 3: *reinterpret_cast< int*>(_v) = _t->socketTypeIndex(); break;
        case 4: *reinterpret_cast< QStringList*>(_v) = _t->socketTypes(); break;
        case 5: *reinterpret_cast< QString*>(_v) = _t->defaultHost(); break;
        case 6: *reinterpret_cast< quint16*>(_v) = _t->defaultPort(); break;
        case 7: *reinterpret_cast< bool*>(_v) = _t->lookupActive(); break;
        default: break;
        }
    } else if (_c == QMetaObject::WriteProperty) {
        auto *_t = static_cast<Network *>(_o);
        Q_UNUSED(_t)
        void *_v = _a[0];
        switch (_id) {
        case 0: _t->setHost(*reinterpret_cast< QString*>(_v)); break;
        case 1: _t->setPort(*reinterpret_cast< quint16*>(_v)); break;
        case 2: _t->setSocketType(*reinterpret_cast< QAbstractSocket::SocketType*>(_v)); break;
        case 3: _t->setSocketTypeIndex(*reinterpret_cast< int*>(_v)); break;
        default: break;
        }
    } else if (_c == QMetaObject::ResetProperty) {
    }
#endif // QT_NO_PROPERTIES
}

static const QMetaObject::SuperData qt_meta_extradata_IO__DataSources__Network[] = {
    QMetaObject::SuperData::link<QAbstractSocket::staticMetaObject>(),
    nullptr
};

QT_INIT_METAOBJECT const QMetaObject IO::DataSources::Network::staticMetaObject = { {
    QMetaObject::SuperData::link<QObject::staticMetaObject>(),
    qt_meta_stringdata_IO__DataSources__Network.data,
    qt_meta_data_IO__DataSources__Network,
    qt_static_metacall,
    qt_meta_extradata_IO__DataSources__Network,
    nullptr
} };


const QMetaObject *IO::DataSources::Network::metaObject() const
{
    return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
}

void *IO::DataSources::Network::qt_metacast(const char *_clname)
{
    if (!_clname) return nullptr;
    if (!strcmp(_clname, qt_meta_stringdata_IO__DataSources__Network.stringdata0))
        return static_cast<void*>(this);
    return QObject::qt_metacast(_clname);
}

int IO::DataSources::Network::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = QObject::qt_metacall(_c, _id, _a);
    if (_id < 0)
        return _id;
    if (_c == QMetaObject::InvokeMetaMethod) {
        if (_id < 14)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 14;
    } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 14)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 14;
    }
#ifndef QT_NO_PROPERTIES
    else if (_c == QMetaObject::ReadProperty || _c == QMetaObject::WriteProperty
            || _c == QMetaObject::ResetProperty || _c == QMetaObject::RegisterPropertyMetaType) {
        qt_static_metacall(this, _c, _id, _a);
        _id -= 8;
    } else if (_c == QMetaObject::QueryPropertyDesignable) {
        _id -= 8;
    } else if (_c == QMetaObject::QueryPropertyScriptable) {
        _id -= 8;
    } else if (_c == QMetaObject::QueryPropertyStored) {
        _id -= 8;
    } else if (_c == QMetaObject::QueryPropertyEditable) {
        _id -= 8;
    } else if (_c == QMetaObject::QueryPropertyUser) {
        _id -= 8;
    }
#endif // QT_NO_PROPERTIES
    return _id;
}

// SIGNAL 0
void IO::DataSources::Network::hostChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 0, nullptr);
}

// SIGNAL 1
void IO::DataSources::Network::portChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 1, nullptr);
}

// SIGNAL 2
void IO::DataSources::Network::socketTypeChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 2, nullptr);
}

// SIGNAL 3
void IO::DataSources::Network::lookupActiveChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 3, nullptr);
}
QT_WARNING_POP
QT_END_MOC_NAMESPACE
